package com.xxkj.drugtraceability.ui.start

import com.xxkj.drugtraceability.base.BaseRepository
import com.xxkj.drugtraceability.bean.*
import com.xxkj.drugtraceability.net.Result
import com.xxkj.drugtraceability.net.WanService

/**
 * author: zhoujingjin
 * created on: 2024/9/10 16:15
 * description:
 */
class StartRepository(private val wanService: WanService):BaseRepository() {


    /**
     * 登陆时版本校验检测
     */
    suspend fun checkVersion( prescriptioninfo:String): Result<BaseData<UpdateData>> {
        return safeApiCall { executeResponse(wanService.checkVersion(prescriptioninfo)) }
    }
}